package com.example.photongrid;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;


public class MyLoadDialog extends Dialog {

protected MyLoadDialog(Context context, boolean cancelable, OnCancelListener cancelListener) {
    super(context, cancelable, cancelListener);
    init(context);  
}




    @Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    View loaderView = getLayoutInflater().inflate(R.layout.dialog, null);
    setContentView(loaderView);
}

private void init(Context context) {
    getWindow().setBackgroundDrawableResource(android.R.color.transparent);
}
}